package com.kc.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.kc.bean.UserAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-10-09
 */
@Mapper
public interface UserAccountMapper extends BaseMapper<UserAccount> {

    //初期测试使用后期优化
    @Select("select user_id from user_account ${ew.customSqlSegment}")
    String getAccount(@Param(Constants.WRAPPER)Wrapper wrapper);

    @Select("select user_id,user_nickname,user_sex,user_phone,user_emial,user_remark,account_avatar,user_Unique_Id_identifier from user_account ${ew.customSqlSegment}")
    UserAccount getUserAccount(@Param(Constants.WRAPPER)Wrapper wrapper);

}
